package ElectricCraft.misc;

import ElectricCraft.frames.DebugPane;

import javax.swing.*;
import javax.swing.plaf.ButtonUI;
import javax.swing.plaf.basic.BasicButtonUI;

/**
 * Util class.
 */
public class Util {
    public static final ButtonUI basicButtonUI = new BasicButtonUI();

    public static JButton createBasicButton(String title, String tooltip) {
        JButton button = new JButton(title);
        button.setUI(basicButtonUI);
        button.setToolTipText(tooltip);
        return button;
    }

    public static JButton createBasicButton() {
        return createBasicButton("", "");
    }
}
